/* PDF预览组件样式 - PDFPreview.vue */

.pdf-preview-container {
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.pdf-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.header-left {
  flex: 1;
}

.pdf-preview-header h2 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.content-warning {
  margin-top: 12px;
}

.content-warning .el-alert {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.content-warning .el-alert__content p {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.pdf-actions {
  display: flex;
  gap: 12px;
  margin-left: 20px;
}

.pdf-actions .el-button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.pdf-actions .el-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.pdf-actions .el-button--primary {
  background: #4CAF50;
  border-color: #4CAF50;
}

.pdf-actions .el-button--primary:hover {
  background: #45a049;
}

.pdf-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pdf-page {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.pdf-page:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.page-content {
  height: 100%;
  overflow: hidden;
  padding: 20px;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* 模拟真实PDF效果 */
.pdf-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* 添加页面阴影效果 */
.pdf-page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(0,0,0,0.02) 50%, transparent 70%);
  pointer-events: none;
}

@media print {
  .pdf-preview-header {
    display: none;
  }
  
  .pdf-page {
    margin: 0;
    box-shadow: none;
    page-break-after: always;
    border-radius: 0;
  }
  
  .pdf-page:last-child {
    page-break-after: avoid;
  }
  
  .pdf-page::before,
  .pdf-page::after {
    display: none;
  }
}
